/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.cliente;

import java.awt.Graphics;
import javax.swing.ImageIcon;
import java.awt.Image;
import javax.swing.JFrame;

/**
 *
 * @author RDener
 */
public class BackgroundPanel3 extends javax.swing.JPanel  
{  
  
    Image im = new ImageIcon ( getClass ( ).getResource ( "basico.jpg" ) ).getImage ( );  
 
    
    
    
   @Override
    public void paintComponent ( Graphics g )  
    {  
        super.paintComponent ( g );  
        int x = ( this.getWidth ( ) - im.getWidth ( null ) ) / 2;  
        int y = ( this.getHeight ( ) - im.getHeight ( null ) ) / 2;  
        g.drawImage ( im , x , y , this );  
    }  
  
}  